package com.game.doudizhu.common.constants;

public final class GameConstants {
    
    public static final class Status {
        public static final String WAITING = "WAITING";
        public static final String PLAYING = "PLAYING";
        public static final String FINISHED = "FINISHED";
        public static final String CLOSED = "CLOSED";

        private Status() {}
    }
    
    public static final class Room {
        public static final int MAX_PLAYERS = 3;
        public static final long INACTIVE_THRESHOLD = 30 * 60 * 1000; // 30分钟
        public static final long RECONNECT_TIMEOUT = 10 * 1000;     // 10s重连
        public static final int MIN_PLAYERS = 1;

        private Room() {}
    }

    public static void main(String[] args) {
        System.out.println(Status.WAITING);
    }
    
    public static final class Role {
        public static final String LANDLORD = "LANDLORD";  // 地主
        public static final String FARMER = "FARMER";      // 农民
        public static final String UNKNOWN = "UNKNOWN";    // 未确定角色
        
        private Role() {}
    }
    
    public static final class Game {
        public static final int INIT_SCORE = 0;           // 初始分数
        public static final int CARDS_PER_PLAYER = 17;    // 每个玩家的初始牌数
        public static final int LANDLORD_CARDS = 3;       // 地主额外获得的牌数
        public static final int MIN_BID = 0;                // 最小叫分
        public static final int MAX_BID = 3;                // 最大叫分
        
        private Game() {}
    }
    
    private GameConstants() {}
} 